﻿<Activity 
  mc:Ignorable="sap" 
  x:Class="$rootnamespace$.$controllername$Workflow" 
  sap:VirtualizedContainerService.HintSize="330,720" 
  mva:VisualBasic.Settings="Assembly references and imported namespaces for internal implementation" 
  xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" 
  xmlns:local="clr-namespace:$rootnamespace$" 
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  xmlns:mscum="clr-namespace:Microsoft.Services.Clab.UI.Mvvmc;assembly=Microsoft.Services.Clab.UI.Mvvmc" 
  xmlns:mscuma="clr-namespace:Microsoft.Services.Clab.UI.Mvvmc.Activities;assembly=Microsoft.Services.Clab.UI.Mvvmc.Activities" 
  xmlns:mscump="clr-namespace:Microsoft.Services.Clab.UI.Mvvmc.Presentation;assembly=Microsoft.Services.Clab.UI.Mvvmc.Presentation" 
  xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System"
  xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" 
  xmlns:s="clr-namespace:System;assembly=mscorlib" 
  xmlns:s1="clr-namespace:System;assembly=System" 
  xmlns:s2="clr-namespace:System;assembly=System.Xml" 
  xmlns:s3="clr-namespace:System;assembly=System.Core" 
  xmlns:s4="clr-namespace:System;assembly=System.ComponentModel.Composition" 
  xmlns:s5="clr-namespace:System;assembly=System.ServiceModel" 
  xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities" 
  xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities" 
  xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
  xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System"
  xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel"
  xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core"
  xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib"
  xmlns:sd="clr-namespace:System.Data;assembly=System.Data" 
  xmlns:sl="clr-namespace:System.Linq;assembly=System.Core" 
  xmlns:st="clr-namespace:System.Text;assembly=mscorlib" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <sap:WorkflowViewStateService.ViewState>
    <scg3:Dictionary x:TypeArguments="x:String, x:Object">
      <x:Boolean x:Key="ShouldCollapseAll">True</x:Boolean>
    </scg3:Dictionary>
  </sap:WorkflowViewStateService.ViewState>
  <mscuma:WorkflowControllerTemplate sap:VirtualizedContainerService.HintSize="290,680">
    <mscuma:WorkflowControllerTemplate.BodyDelegate>
      <ActivityAction x:TypeArguments="mscum:IController">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="mscum:IController" Name="Controller" />
        </ActivityAction.Argument>
        <Sequence DisplayName="Workflow logic Sequence" sap:VirtualizedContainerService.HintSize="276,181">
          <Sequence.Variables>
            <Variable x:TypeArguments="local:$viewmodelname$" Name="viewModel" />
          </Sequence.Variables>
          <sap:WorkflowViewStateService.ViewState>
            <scg3:Dictionary x:TypeArguments="x:String, x:Object">
              <x:Boolean x:Key="IsExpanded">True</x:Boolean>
              <x:Boolean x:Key="IsPinned">True</x:Boolean>
            </scg3:Dictionary>
          </sap:WorkflowViewStateService.ViewState>
          <Assign sap:VirtualizedContainerService.HintSize="242,57">
            <Assign.To>
              <OutArgument x:TypeArguments="local:$viewmodelname$">[viewModel]</OutArgument>
            </Assign.To>
            <Assign.Value>
              <InArgument x:TypeArguments="local:$viewmodelname$">[CType(Controller.ViewModel, $viewmodelname$)]</InArgument>
            </Assign.Value>
          </Assign>
        </Sequence>
      </ActivityAction>
    </mscuma:WorkflowControllerTemplate.BodyDelegate>
    <mscuma:WorkflowControllerTemplate.CreateViewModelDelegate>
      <ActivityFunc x:TypeArguments="scg3:IDictionary(x:String, x:Object), mscum:IViewModel">
        <ActivityFunc.Argument>
          <DelegateInArgument x:TypeArguments="scg3:IDictionary(x:String, x:Object)" Name="InitArguments" />
        </ActivityFunc.Argument>
        <ActivityFunc.Result>
          <DelegateOutArgument x:TypeArguments="mscum:IViewModel" Name="Result" />
        </ActivityFunc.Result>
        <Assign sap:VirtualizedContainerService.HintSize="276,57">
          <Assign.To>
            <OutArgument x:TypeArguments="mscum:IViewModel">[Result]</OutArgument>
          </Assign.To>
          <Assign.Value>
            <InArgument x:TypeArguments="mscum:IViewModel">[New $viewmodelname$()]</InArgument>
          </Assign.Value>
        </Assign>
      </ActivityFunc>
    </mscuma:WorkflowControllerTemplate.CreateViewModelDelegate>
    <mscuma:WorkflowControllerTemplate.DoStartupActionDelegate>
      <ActivityAction x:TypeArguments="mscum:IController">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="mscum:IController" Name="Controller" />
        </ActivityAction.Argument>
      </ActivityAction>
    </mscuma:WorkflowControllerTemplate.DoStartupActionDelegate>
    <mscuma:WorkflowControllerTemplate.OnInitializedDelegate>
      <ActivityAction x:TypeArguments="mscum:IController">
        <ActivityAction.Argument>
          <DelegateInArgument x:TypeArguments="mscum:IController" Name="Controller" />
        </ActivityAction.Argument>
      </ActivityAction>
    </mscuma:WorkflowControllerTemplate.OnInitializedDelegate>
    <sap:WorkflowViewStateService.ViewState>
      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="ShouldCollapseAll">True</x:Boolean>
      </scg3:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
  </mscuma:WorkflowControllerTemplate>
</Activity>